package com.sxt.springsecuritytest2.controller; /*
 *
 * @Description todo
 * @author qqg
 * @date $date$
 * @param $params$
 * @return $return$
 **/

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class LoginController {

    @RequestMapping(value = "/",method = {RequestMethod.GET,RequestMethod.POST})
    public String login(){
        return "login";
    }

    @RequestMapping("/doLogin")
    public String doLogin(String username, String password){
        return "index";
    }

    @RequestMapping("/success")
    public String success(){
        return "index";
    }

    @RequestMapping("/fail")
    public String fail(){
        return "failer";
    }

}
